<!-- 选项按钮组 -->
<template>
  <div class="option-btn-group">
    <button
      @click="btnGroups[btnName](chartObj)"
      v-for="btnName of Object.keys(btnGroups)"
      :key="btnName"
    >
      {{ btnName }}
    </button>
  </div>
</template>

<script>
import { btnGroups } from "./index";
export default {
  name: "OptionButtonGroup",
  props: {
    chartObj: {
      type: Object,
      define: () => null,
    },
  },
  data() {
    return {
      btnGroups,
    };
  }
};
</script>

<style lang="scss" scoped>
.option-btn-group {
  bottom: 1px solid #000;
}
</style>